package com.neuedu.controller.disposal;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.neuedu.bean.RestBean;
import com.neuedu.service.disposal.DisposalInputService;

/**
 * 处置管理：处置结果录入
 */
@RestController
public class DisposalInputController {
//	@Autowired
	private DisposalInputService disposalInputService;
	@RequestMapping("getFinishDisposal")
	public RestBean getFinishDisposal(String caseNumber
			,String realName
			,Integer nowPageNumber
			,Integer pageSize) {
		return disposalInputService.getFinishDisposal(caseNumber,realName,nowPageNumber,pageSize);
	}

	@RequestMapping("getFinishDisposalByRegistid")
	public List<Map<String,Object>> getFinishDisposalByRegistid(String id){
		return disposalInputService.getFinishDisposalByRegistid(id);
	}
	
	@RequestMapping("updateDisposalInput")
	public RestBean updateDisposalInput(String id
			,String employeeId
			,String disposalResult) {
		return disposalInputService.updateDisposalInput(id,employeeId,disposalResult);
	}
}
